package org.anjoy.ktv.util;

import org.anjoy.ktv.R;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import android.widget.LinearLayout;
import android.widget.Toast;

public class KtvBackgroundDialog extends Dialog {

	public Context mContext;
	private LinearLayout dreamBtn;
	private LinearLayout starBtn;
	private LinearLayout danceBtn;
	private LinearLayout seaBtn;
	private ImageButton canceBtn;

	public KtvBackgroundDialog(Context context) {
		super(context);
		this.mContext = context;
	}

	public KtvBackgroundDialog(Context context, int theme) {
		super(context, theme);
		this.mContext = context;
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ktv_dialog_background_style);
		dreamBtn = (LinearLayout) findViewById(R.id.ktv_dialog_background_dream_btn);
		starBtn = (LinearLayout) findViewById(R.id.ktv_dialog_background_star_btn);
		danceBtn = (LinearLayout) findViewById(R.id.ktv_dialog_background_dance_btn);
		seaBtn = (LinearLayout) findViewById(R.id.ktv_dialog_background_sea_btn);
		canceBtn = (ImageButton) findViewById(R.id.ktv_background_cance);

		dreamBtn.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				Toast.makeText(mContext, "dreamBtn", Toast.LENGTH_SHORT).show();
			}
		});

		starBtn.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				Toast.makeText(mContext, "starBtn", Toast.LENGTH_SHORT).show();
			}
		});

		danceBtn.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				Toast.makeText(mContext, "danceBtn", Toast.LENGTH_SHORT).show();
			}
		});

		seaBtn.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				Toast.makeText(mContext, "sea", Toast.LENGTH_SHORT).show();
			}
		});

		canceBtn.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				cancel();
			}
		});
	}

}
